package com.chk.commom.constants;


public enum AppHttpCodeEnum {
    ERROR(100000,"未知原因"),



    SUCCESS(200,"操作成功"),

    /**
     * 登录  110000 - 100000
     */


    PASSWORD_ERROR(100001,"密码错误"),
    LOGIN_ERROR(100002,"用户名或密码错误"),
    NEED_LOGIN(100003,"登录后操作"),
    JWT_ERROR(100004,"jwt令牌无效，请重新登录"),
    USERNAME_REPEAT(100005,"用户名重复，请换个用户名！"),
    CODE_ERROR(100006, "验证码错误"),
    /**
     * 标签
     */
    TAG_NAME_IS_NULL(101001, "添加的标签名为空"),
    TAG_NAME_IS_EXIST(101002, "标签名已存在")

    ;
    int code;
    String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    AppHttpCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
